class message_type:
    message_exit = "exit"
    message_talk = "talk"
    message_game = "game"

class PyPixelMessage:
    def __init__(self, message_type, message_content, send_user, receive_user):
        self.message_type = message_type
        self.message_content = message_content
        self.send_user = send_user
        self.receive_user = receive_user

    def __str__(self):
        return f"Message(message_type={self.message_type}, message_content={self.message_content}, send_user={self.send_user}, receive_user={self.receive_user})"

    @property
    def is_close(self):
        return self.message_type == message_type.message_exit and self.message_content is None and self.send_user is None and self.receive_user is None

    @property
    def is_game(self):
        return self.message_type == message_type.message_game